﻿<%@ Page Title="" Language="C#" MasterPageFile="~/HomeMasterPage.master" AutoEventWireup="true"
    CodeFile="List.aspx.cs" Inherits="List" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link rel="stylesheet" type="text/css" href="<%=ResolveUrl("~/") %>resources/list.css"
        media="screen" />
    <!--[if IE 6]><script>try{document.execCommand("BackgroundImageCache", false, true);}catch(e){}</script><![endif]-->
    <script language="javascript"> 
<!--
        window.onerror = function () { return true; } 
// --> 
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="container_25 clearfix" style="margin-top: 20px;">
        <div class="grid_7">
            <amv:MusicFilter runat="server"></amv:MusicFilter>
        </div>
        <div class="grid_18">
            <div class="mod_toolbar">
                <!-- tabs start -->
                <div class="mod_tab_sort">
                    <ul class="_group" gname="mi_sort" gtype="0">
                        <li class="current"><a href="javascript:void(0);">最新</a> </li>
                        <li><a href="javascript:void(0);">最热</a> </li>
                    </ul>
                </div>
            </div>
            <div class="mod_video_list poster">
                <div class="mod_cont" id="content">
                    <ul class="mod_list_pic_160">
                        <asp:Repeater ID="Repeater1" runat="server" DataSourceID="srcMusics">
                            <ItemTemplate>
                                <li><a href="<%=ResolveUrl("~/Play.aspx")%>?MusicID=<%# Eval("MusicID") %>" class="mod_poster_160"
                                    target="_blank">
                                    <img src="<%# Eval("ThumbPicture") %>" alt="<%# Eval("MusicName") %>" onerror="this.src='<%=ResolveUrl("~/") %>resources/nophoto.jpg'">
                                    <div class="mod_sign">
                                        <span class="mod_HD">1080p</span> <span class="mod_version">
                                            <%# Eval("Length") %></span>
                                    </div>
                                    <span class="mod_mask"></span></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<h6
                                        class="scores">
                                        <a href="<%=ResolveUrl("~/Play.aspx")%>?MusicID=<%# Eval("MusicID") %>" target="_blank">
                                            <%# Eval("MusicName") %></a> <strong class="c_txt3">5.0</strong>
                                    </h6>
                                    <p class="singer">
                                        <a href="javascript:void(0);" target="_blank">
                                            <%# Eval("Singer") %></a>
                                    </p>
                                    <p>
                                        播放：<span class="_total_view"><%# Eval("HitCount") %></span></p>
                                </li>
                            </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                </div>
            </div>
            <asp:ObjectDataSource ID="srcMusics" runat="server" SelectMethod="GetList" TypeName="AMV.BLL.Music">
                <SelectParameters>
                    <asp:Parameter DefaultValue="16" Name="pageSize" Type="Int32" />
                    <asp:QueryStringParameter DefaultValue="1" Name="PageIndex" QueryStringField="page"
                        Type="Int32" />
                    <asp:QueryStringParameter Name="region" QueryStringField="region" Type="String" ConvertEmptyStringToNull="true" />
                    <asp:Parameter Name="style" Type="String" ConvertEmptyStringToNull="true" />
                    <asp:Parameter Name="year" Type="Int32" ConvertEmptyStringToNull="true" />
                </SelectParameters>
            </asp:ObjectDataSource>
        </div>
    </div>
</asp:Content>
